package com.hq.modules.sys.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hq.modules.sys.entity.Regions;
import com.hq.modules.sys.dao.RegionsMapper;
import com.hq.service.RegionsService;

@Service
public class RegionsServiceImpl implements RegionsService {

    @Resource
    private RegionsMapper regionsMapper;

    @Override
    public int deleteByPrimaryKey(Integer regionid) {
        return regionsMapper.deleteByPrimaryKey(regionid);
    }

    @Override
    public int insert(Regions record) {
        return regionsMapper.insert(record);
    }

    @Override
    public int insertSelective(Regions record) {
        return regionsMapper.insertSelective(record);
    }

    @Override
    public Regions selectByPrimaryKey(Integer regionid) {
        return regionsMapper.selectByPrimaryKey(regionid);
    }

    @Override
    public int updateByPrimaryKeySelective(Regions record) {
        return regionsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Regions record) {
        return regionsMapper.updateByPrimaryKey(record);
    }

}






